# Maintainer:
pkgname=py3-exifread
_pkgname=ExifRead
pkgver=2.2.0
pkgrel=1
pkgdesc="Read Exif metadata from tiff and jpeg files"
options="!check" # No testsuite
url="https://github.com/ianare/exif-py"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/ianare/exif-py/archive/$pkgver.tar.gz"

builddir="$srcdir"/exif-py-$pkgver

replaces="py-exifread" # Backwards compatibility
provides="py-exifread=$pkgver-r$pkgrel" # Backwards compatibility

prepare() {
	default_prepare
	sed -i "s/2.1.2/$version/" exifread/__init__.py
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="a1e6b27e7092ef8ce8c1a6c5fe095f0641ff942aa4bcd2a9f96eda688fe8cf7544bd6b9e48b4b29586906dac95ed717578de6b8bb691d8a4a1864992da0e00f5  py3-exifread-2.2.0.tar.gz"
